package com.diapoc.androidteacher.utils;

import android.text.Layout;
import android.text.TextPaint;

public class CanvasManager {
	public static float getTextWidth(String string, TextPaint paint) {
		return Layout.getDesiredWidth(string, paint);
	}

	public static float getTextHeight(TextPaint paint) {
		return (-paint.getFontMetrics().top) / 1.5f;
	}
}
